﻿/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
============================================================================= */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
============================================================================= */

/*
	#8EC6C9 Blueish
	#F2E96B Yellowish
	#F2C894 Salmon
	#F29877 Light-pink
	#593831 Brown
*/

.edit-in-place-trigger {
    cursor: pointer;
}

a {
	text-decoration: none;
	color: #034769;
}

a:hover {
	color: #63ADD0;
}

input[type="number"] {
	width: 3.5em;
}

::-webkit-input-placeholder { /* WebKit browsers */
    color:    #999;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color:    #999;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
    color:    #999;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
    color:    #999;
}

html {
	background: url('../img/bg.jpg') #EEE repeat;
}

body {
	font: 16px / 20px 'Arial', sans-serif;
	padding-bottom: 2em;
	position: relative;
}

body > header {
	padding: 0.5em;
	border-bottom: 1px solid #BBB;
	background-color: rgba(240, 240, 240, 1.0);
}

#setup-mode, #saving-indicator {
	float: left;
	font-variant: small-caps;
	cursor: pointer;
	background-color: #8EC6C9;
	display: inline-block;
	padding: 0.2em 0.4em;
	border: 1px solid #BBB;
	border-radius: 2px;
	opacity: 0.5;
}

#setup-mode.active {
	opacity: 1.0;
}

#setup-controls {
	margin-top: 0.5em;
}

#saving-indicator {
	background-color: #F29877;	
	margin-left: 1em;
}

header aside {
	display: inline-block;
	float: right;
}

#about-trigger {
	display: inline-block;
	text-align: center;
	width: 1.6em;
	height: 1.6em;
	line-height: 1.6em;
	border-radius: 50%;
	color: #FFF;
	background-color: #8EC6C9;
	cursor: pointer;
}


.currents {
	display: inline-block;
	float: right;
	border: 1px solid #BBB;
	background-color: rgba(242, 233, 107, 0.3);
	padding: 0.1em 0.4em;
	margin-left: 0.5em;
}

#main {
	padding: 0.5em 0.5em 0;
}

#main table  {
	width: 100%;
	padding: 0;
	margin: 0.5em 0;
}

#main th {
	background-color: rgba(128, 128, 128, 0.5);
	text-align: left;
}

#main tr {
	border: 1px solid #AAA;
	padding: 0.5em;
	background-color: rgba(255, 255, 255, 0.7);
}

#main tr:not(.is-player-character):not(.header) {
	font-family: 'Risque';
}

#main tr.readied {
	background-color: rgba(200, 200, 200, 0.7);
}

#main tr.delayed {
	color: #AAA;
	background-color: rgba(226, 226, 226, 0.7);
}

#main tr.current-player {
	background-color: rgba(242, 233, 107, 0.7);
}

#main td,
#main th {
	padding: 0.25em 0.5em;
	vertical-align: top;
}

#main td.character {
	width: 100%;
}

#main td.actions,
#main td.initiative-total,
#main td.initiative-total,
#main td.remove {
	white-space: nowrap;
}

#main .number {
	white-space: nowrap;
	text-align: right;
}

#main .readonly-pane,
#main .initiative-part,
#main .condition-part {
	display: inline-block;
}

#main .conditions { display: none; }
#main tr.expanded .conditions { display: block; }

#add-character {
	border: 1px solid #AAA;
	background-color: rgba(255, 255, 255, 0.7);
	padding: 0.5em;
    margin-bottom: 0.5em;
}


.hp-change {
	text-align: center;	
}

.hp-change label {
	display: inline-block;
	background-color: #EEE;
	border: 1px solid #CCC;
	padding: 0.5em 1em;
	cursor: pointer;
}

.hp-change label > * { 
	vertical-align: middle;
}

.hp-change label.damage { background-color: #FFCCCC; }
.hp-change label.healing { background-color: #CCFFCC; }

.hp-change .change-type {
	margin-bottom: 2em;
}


#overlay {
	background: rgba(0, 0, 0, 0.2);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.dialog {
	border: 1px solid #CCC;
	background-color: #FFF;
	box-shadow: 2px 2px 4px #AAA;
	position: fixed;
	top: 3em;
    left: 15%;
    width: 70%;
	z-index: 100;
}

.dialog-title {
	background-color: #EEE;
	border-bottom: 1px solid #CCC;
	padding: 0.25em 0.5em;
	text-align: center;
	font-weight: bold;
}

.dialog-title .close {
	float: right;
	vertical-align: center;
	color: #AAA;
	cursor: pointer;
}

.dialog-content {
	padding: 2em 0.5em;
}








/* ==========================================================================
   Helper classes
============================================================================= */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}